package com.hkfn.rfb;

import androidx.multidex.MultiDexApplication;

import org.xutils.x;

public class App extends MultiDexApplication {

    private static App mAppApplication;

    @Override
    public void onCreate() {
        super.onCreate();
        mAppApplication = this;

        AppExHandler crashHandler = AppExHandler.getInstance();
        crashHandler.init(this);//初始化全局异常捕获

        initXutils();
    }

    private void initXutils() {
        x.Ext.init(this);
    }

    /** 获取Application */
    public static App getApp() {
        return mAppApplication;
    }
}
